//
//  Animal.m
//  oc4.13
//
//  Created by mac on 16-4-13.
//  Copyright (c) 2016年 oc4.13. All rights reserved.
//

#import "Animal.h"

@implementation Animal

-(NSString *)description
{
    return self.name;
}
-(void)eat
{
    NSLog(@"Animal eat!");
}
-(void)sleep
{
    NSLog(@"Animal sleep!");
}
-(NSComparisonResult)compare:(Animal *)ani
{
    return [self.name compare:ani.name];
}
@end
